package com.example.order.controller;

import com.example.member.api.entity.Member;
import com.example.member.api.feign.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 章侠杰
 * @since 2018-12-07
 */
@RestController
@RequestMapping("")
public class OrderController{

    @Autowired
    MemberService memberService;

    @GetMapping("/{username}")
    public Member getMemberInfo(@PathVariable String username){
        return memberService.getMmeberInfo(username);
    }

}
